<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class ManaPHP\Db</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?70c1d062672daa3f906b72e4f5d03d4bc5c4174d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Overview</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-ManaPHP.html" title="Summary of ManaPHP"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-ManaPHP.html">
							ManaPHP<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Alias.html">
							Alias						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Authentication.html">
							Authentication<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.html">
							Token<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.Adapter.Mwt.html">
							Mwt						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Authorization.html">
							Authorization<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.html">
							Rbac<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.Models.html">
							Models						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.PermissionBuilder.html">
							PermissionBuilder						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.Apc.html">
							Apc						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Cli.html">
							Cli<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cli.Application.html">
							Application						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cli.Arguments.html">
							Arguments						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cli.Controllers.html">
							Controllers						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Component.html">
							Component						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Configure.html">
							Configure<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.html">
							Engine<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.Ini.html">
							Ini						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.Json.html">
							Json						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Counter.html">
							Counter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Counter.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Counter.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Db.html">
							Db<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Db.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Db.Adapter.Sqlite.html">
							Sqlite						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Debugger.html">
							Debugger						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Di.html">
							Di						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Event.html">
							Event<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Event.Manager.html">
							Manager						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Facade.html">
							Facade						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Filesystem.html">
							Filesystem<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Filesystem.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Filesystem.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Http.html">
							Http<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Client.html">
							Client						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Cookies.html">
							Cookies						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Filter.html">
							Filter						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Request.html">
							Request<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Request.File.html">
							File						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Http.Response.html">
							Response						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Session.html">
							Session<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Session.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Session.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.I18n.html">
							I18n						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Image.html">
							Image<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.Gd.html">
							Gd						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.Imagick.html">
							Imagick						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Loader.html">
							Loader						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Logger.html">
							Logger<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Logger.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Logger.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Message.html">
							Message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.html">
							Queue<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.Redis.html">
							Redis						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Meter.html">
							Meter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Meter.Linear.html">
							Linear						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Meter.Round.html">
							Round						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.html">
							Mvc<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Application.html">
							Application						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Dispatcher.html">
							Dispatcher						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.html">
							Model<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Manager.html">
							Manager						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.html">
							Metadata<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.Apc.html">
							Apc						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.QueryBuilder.html">
							QueryBuilder						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.html">
							Router<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.RewriteChecker.html">
							RewriteChecker						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.Route.html">
							Route						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Url.html">
							Url						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.User.html">
							User						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.html">
							View<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.Flash.html">
							Flash<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.Flash.Adapter.html">
							Adapter						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Paginator.html">
							Paginator						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Renderer.html">
							Renderer<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.html">
							Engine<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.Php.html">
							Php						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.Sword.html">
							Sword						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Security.html">
							Security<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.Crypt.html">
							Crypt						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.CsrfToken.html">
							CsrfToken						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.html">
							RateLimiter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Serializer.html">
							Serializer<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.Json.html">
							Json						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.JsonPhp.html">
							JsonPhp						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.Php.html">
							Php						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.StringType.html">
							StringType						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Store.html">
							Store<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Task.html">
							Task<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.html">
							Metadata<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Apc.html">
							Apc						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Redis.html">
							Redis						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Text.html">
							Text						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Utility.html">
							Utility						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-ManaPHP.Alias.html">Alias</a></li>
				<li><a href="class-ManaPHP.Application.html">Application</a></li>
				<li><a href="class-ManaPHP.Cache.html">Cache</a></li>
				<li><a href="class-ManaPHP.Component.html">Component</a></li>
				<li><a href="class-ManaPHP.Configure.html">Configure</a></li>
				<li><a href="class-ManaPHP.Counter.html">Counter</a></li>
				<li class="active"><a href="class-ManaPHP.Db.html">Db</a></li>
				<li><a href="class-ManaPHP.Debugger.html">Debugger</a></li>
				<li><a href="class-ManaPHP.Di.html">Di</a></li>
				<li><a href="class-ManaPHP.Facade.html">Facade</a></li>
				<li><a href="class-ManaPHP.Image.html">Image</a></li>
				<li><a href="class-ManaPHP.Loader.html">Loader</a></li>
				<li><a href="class-ManaPHP.Logger.html">Logger</a></li>
				<li><a href="class-ManaPHP.Paginator.html">Paginator</a></li>
				<li><a href="class-ManaPHP.Renderer.html">Renderer</a></li>
				<li><a href="class-ManaPHP.Store.html">Store</a></li>
				<li><a href="class-ManaPHP.Task.html">Task</a></li>
				<li><a href="class-ManaPHP.Version.html">Version</a></li>
			</ul>

			<h3>Interfaces</h3>
			<ul>
				<li><a href="class-ManaPHP.AliasInterface.html">AliasInterface</a></li>
				<li><a href="class-ManaPHP.ApplicationInterface.html">ApplicationInterface</a></li>
				<li><a href="class-ManaPHP.AuthorizationInterface.html">AuthorizationInterface</a></li>
				<li><a href="class-ManaPHP.CacheInterface.html">CacheInterface</a></li>
				<li><a href="class-ManaPHP.ComponentInterface.html">ComponentInterface</a></li>
				<li><a href="class-ManaPHP.ConfigureInterface.html">ConfigureInterface</a></li>
				<li><a href="class-ManaPHP.CounterInterface.html">CounterInterface</a></li>
				<li><a href="class-ManaPHP.DbInterface.html">DbInterface</a></li>
				<li><a href="class-ManaPHP.DebuggerInterface.html">DebuggerInterface</a></li>
				<li><a href="class-ManaPHP.DiInterface.html">DiInterface</a></li>
				<li><a href="class-ManaPHP.FilesystemInterface.html">FilesystemInterface</a></li>
				<li><a href="class-ManaPHP.ImageInterface.html">ImageInterface</a></li>
				<li><a href="class-ManaPHP.LoaderInterface.html">LoaderInterface</a></li>
				<li><a href="class-ManaPHP.LoggerInterface.html">LoggerInterface</a></li>
				<li><a href="class-ManaPHP.PaginatorInterface.html">PaginatorInterface</a></li>
				<li><a href="class-ManaPHP.RendererInterface.html">RendererInterface</a></li>
				<li><a href="class-ManaPHP.StoreInterface.html">StoreInterface</a></li>
				<li><a href="class-ManaPHP.TaskInterface.html">TaskInterface</a></li>
			</ul>


			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-ManaPHP.Exception.html">Exception</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Db</h1>


	<div class="description">
	<p>Class ManaPHP\Db</p>
	</div>

	<dl class="tree well">
		<dd style="padding-left:0px">
			<a href="class-ManaPHP.Component.html"><span>ManaPHP\Component</span></a>
			
			 implements 
				<a href="class-ManaPHP.ComponentInterface.html"><span>ManaPHP\ComponentInterface</span></a>
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>ManaPHP\Db</span></b>			
			 implements 
				<a href="class-ManaPHP.DbInterface.html"><span>ManaPHP\DbInterface</span></a>
			
			
		</dd>
	</dl>


	<div>
		<h3>Direct known subclasses</h3>
		<p class="elementList">
			<code><a href="class-ManaPHP.Db.Adapter.Mysql.html">ManaPHP\Db\Adapter\Mysql</a></code>, 
			<code><a href="class-ManaPHP.Db.Adapter.Sqlite.html">ManaPHP\Db\Adapter\Sqlite</a></code>
		</p>
	</div>






	<div class="alert alert-info">
		<b>Abstract</b><br>
		
		<b>Namespace:</b> <a href="namespace-ManaPHP.html">ManaPHP</a><br>
		<b>Package:</b> db<br>

			<b>Located at</b> <a href="source-class-ManaPHP.Db.html#8-641" title="Go to source code">Db.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code><a href="source-class-ManaPHP.Db.html#75-108" title="Go to source code">__construct</a>( <span>array <var>$options</var></span> )</code>

			<div class="description short">
				<p>\ManaPHP\Db\Adapter constructor</p>
			</div>

			<div class="description detailed hidden">
				<p>\ManaPHP\Db\Adapter constructor</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$options</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="_executePrepared" id="__executePrepared">

			<td class="attributes"><code>
				 protected 
				PDOStatement
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__executePrepared">#</a>
			<code><a href="source-class-ManaPHP.Db.html#110-152" title="Go to source code">_executePrepared</a>( <span>PDOStatement <var>$statement</var></span>, <span>array <var>$bind</var></span> )</code>

			<div class="description short">
				<p>Executes a prepared statement binding. This function uses integer indexes starting from zero</p>

<pre><span class="php-var">$statement</span> = <span class="php-var">$db</span>-&gt;prepare(<span class="php-quote">'SELECT * FROM robots WHERE name = :name'</span>);
<span class="php-var">$result</span> = <span class="php-var">$connection</span>-&gt;executePrepared(<span class="php-var">$statement</span>, <span class="php-keyword1">array</span>(<span class="php-quote">'name'</span> =&gt; <span class="php-quote">'mana'</span>));</pre>
			</div>

			<div class="description detailed hidden">
				<p>Executes a prepared statement binding. This function uses integer indexes starting from zero</p>

<pre><span class="php-var">$statement</span> = <span class="php-var">$db</span>-&gt;prepare(<span class="php-quote">'SELECT * FROM robots WHERE name = :name'</span>);
<span class="php-var">$result</span> = <span class="php-var">$connection</span>-&gt;executePrepared(<span class="php-var">$statement</span>, <span class="php-keyword1">array</span>(<span class="php-quote">'name'</span> =&gt; <span class="php-quote">'mana'</span>));</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$statement</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						PDOStatement
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="query" id="_query">

			<td class="attributes"><code>
				 public 
				PdoStatement
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_query">#</a>
			<code><a href="source-class-ManaPHP.Db.html#154-200" title="Go to source code">query</a>( <span>string <var>$sql</var></span>, <span>array <var>$bind</var> = []</span>, <span>integer <var>$fetchMode</var> = \PDO::FETCH_ASSOC</span> )</code>

			<div class="description short">
				<p>Sends SQL statements to the database server returning the success state.
Use this method only when the SQL statement sent to the server is returning rows</p>

<pre><span class="php-comment">//Querying data</span>
   <span class="php-var">$resultset</span> = <span class="php-var">$connection</span>-&gt;query(<span class="php-quote">&quot;SELECT * FROM robots WHERE type='mechanical'&quot;</span>);
   <span class="php-var">$resultset</span> = <span class="php-var">$connection</span>-&gt;query(<span class="php-quote">&quot;SELECT * FROM robots WHERE type=?&quot;</span>, <span class="php-keyword1">array</span>(<span class="php-quote">&quot;mechanical&quot;</span>));</pre>
			</div>

			<div class="description detailed hidden">
				<p>Sends SQL statements to the database server returning the success state.
Use this method only when the SQL statement sent to the server is returning rows</p>

<pre><span class="php-comment">//Querying data</span>
   <span class="php-var">$resultset</span> = <span class="php-var">$connection</span>-&gt;query(<span class="php-quote">&quot;SELECT * FROM robots WHERE type='mechanical'&quot;</span>);
   <span class="php-var">$resultset</span> = <span class="php-var">$connection</span>-&gt;query(<span class="php-quote">&quot;SELECT * FROM robots WHERE type=?&quot;</span>, <span class="php-keyword1">array</span>(<span class="php-quote">&quot;mechanical&quot;</span>));</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
						<dt><var>$fetchMode</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						PdoStatement
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_query">ManaPHP\DbInterface::query()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="execute" id="_execute">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_execute">#</a>
			<code><a href="source-class-ManaPHP.Db.html#202-247" title="Go to source code">execute</a>( <span>string <var>$sql</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				<p>Sends SQL statements to the database server returning the success state.
Use this method only when the SQL statement sent to the server does n't return any rows</p>

<pre><span class="php-comment">//Inserting data</span>
   <span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;execute(<span class="php-quote">&quot;INSERT INTO robots VALUES (1, 'Boy')&quot;</span>);
   <span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;execute(<span class="php-quote">&quot;INSERT INTO robots VALUES (?, ?)&quot;</span>, <span class="php-keyword1">array</span>(<span class="php-num">1</span>, <span class="php-quote">'Boy'</span>));</pre>
			</div>

			<div class="description detailed hidden">
				<p>Sends SQL statements to the database server returning the success state.
Use this method only when the SQL statement sent to the server does n't return any rows</p>

<pre><span class="php-comment">//Inserting data</span>
   <span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;execute(<span class="php-quote">&quot;INSERT INTO robots VALUES (1, 'Boy')&quot;</span>);
   <span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;execute(<span class="php-quote">&quot;INSERT INTO robots VALUES (?, ?)&quot;</span>, <span class="php-keyword1">array</span>(<span class="php-num">1</span>, <span class="php-quote">'Boy'</span>));</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_execute">ManaPHP\DbInterface::execute()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="affectedRows" id="_affectedRows">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_affectedRows">#</a>
			<code><a href="source-class-ManaPHP.Db.html#249-257" title="Go to source code">affectedRows</a>( )</code>

			<div class="description short">
				<p>Returns the number of affected rows by the last INSERT/UPDATE/DELETE reported by the database system</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the number of affected rows by the last INSERT/UPDATE/DELETE reported by the database system</p>



					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_affectedRows">ManaPHP\DbInterface::affectedRows()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="fetchOne" id="_fetchOne">

			<td class="attributes"><code>
				 public 
				array|false
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchOne">#</a>
			<code><a href="source-class-ManaPHP.Db.html#259-282" title="Go to source code">fetchOne</a>( <span>string <var>$sql</var></span>, <span>array <var>$bind</var> = []</span>, <span>integer <var>$fetchMode</var> = \PDO::FETCH_ASSOC</span> )</code>

			<div class="description short">
				<p>Returns the first row in a SQL query result</p>

<pre><span class="php-comment">//Getting first robot</span>
   <span class="php-var">$robot</span> = <span class="php-var">$connection</span>-&gt;fetchOne(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>);
   <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);
   <span class="php-comment">//Getting first robot with associative indexes only</span>
   <span class="php-var">$robot</span> = <span class="php-var">$connection</span>-&gt;fetchOne(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>, \ManaPHP\Db::FETCH_ASSOC);
   <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);</pre>
			</div>

			<div class="description detailed hidden">
				<p>Returns the first row in a SQL query result</p>

<pre><span class="php-comment">//Getting first robot</span>
   <span class="php-var">$robot</span> = <span class="php-var">$connection</span>-&gt;fetchOne(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>);
   <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);
   <span class="php-comment">//Getting first robot with associative indexes only</span>
   <span class="php-var">$robot</span> = <span class="php-var">$connection</span>-&gt;fetchOne(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>, \ManaPHP\Db::FETCH_ASSOC);
   <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
						<dt><var>$fetchMode</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array|false
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_fetchOne">ManaPHP\DbInterface::fetchOne()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAll" id="_fetchAll">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAll">#</a>
			<code><a href="source-class-ManaPHP.Db.html#284-314" title="Go to source code">fetchAll</a>( <span>string <var>$sql</var></span>, <span>array <var>$bind</var> = []</span>, <span>integer <var>$fetchMode</var> = \PDO::FETCH_ASSOC</span> )</code>

			<div class="description short">
				<p>Dumps the complete result of a query into an array</p>

<pre><span class="php-comment">//Getting all robots with associative indexes only</span>
   <span class="php-var">$robots</span> = <span class="php-var">$connection</span>-&gt;fetchAll(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>, \ManaPHP\Db::FETCH_ASSOC);
   <span class="php-keyword1">foreach</span> (<span class="php-var">$robots</span> <span class="php-keyword1">as</span> <span class="php-var">$robot</span>) {
       <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);
   }
 <span class="php-comment">//Getting all robots that contains word &quot;robot&quot; withing the name</span>
 <span class="php-var">$robots</span> = <span class="php-var">$connection</span>-&gt;fetchAll(<span class="php-quote">&quot;SELECT * FROM robots WHERE name LIKE :name&quot;</span>,
       ManaPHP\Db::FETCH_ASSOC,
       <span class="php-keyword1">array</span>(<span class="php-quote">'name'</span> =&gt; <span class="php-quote">'%robot%'</span>)
 );
   <span class="php-keyword1">foreach</span>(<span class="php-var">$robots</span> <span class="php-keyword1">as</span> <span class="php-var">$robot</span>){
       <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);
   }</pre>
			</div>

			<div class="description detailed hidden">
				<p>Dumps the complete result of a query into an array</p>

<pre><span class="php-comment">//Getting all robots with associative indexes only</span>
   <span class="php-var">$robots</span> = <span class="php-var">$connection</span>-&gt;fetchAll(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>, \ManaPHP\Db::FETCH_ASSOC);
   <span class="php-keyword1">foreach</span> (<span class="php-var">$robots</span> <span class="php-keyword1">as</span> <span class="php-var">$robot</span>) {
       <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);
   }
 <span class="php-comment">//Getting all robots that contains word &quot;robot&quot; withing the name</span>
 <span class="php-var">$robots</span> = <span class="php-var">$connection</span>-&gt;fetchAll(<span class="php-quote">&quot;SELECT * FROM robots WHERE name LIKE :name&quot;</span>,
       ManaPHP\Db::FETCH_ASSOC,
       <span class="php-keyword1">array</span>(<span class="php-quote">'name'</span> =&gt; <span class="php-quote">'%robot%'</span>)
 );
   <span class="php-keyword1">foreach</span>(<span class="php-var">$robots</span> <span class="php-keyword1">as</span> <span class="php-var">$robot</span>){
       <span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>);
   }</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
						<dt><var>$fetchMode</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_fetchAll">ManaPHP\DbInterface::fetchAll()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="insert" id="_insert">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_insert">#</a>
			<code><a href="source-class-ManaPHP.Db.html#316-357" title="Go to source code">insert</a>( <span>string <var>$table</var></span>, <span>array <var>$columnValues</var></span> )</code>

			<div class="description short">
				<p>Inserts data into a table using custom SQL syntax</p>

<pre><span class="php-comment">//Inserting a new robot</span>
<span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;insert(
    <span class="php-quote">&quot;robots&quot;</span>,
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;Boy&quot;</span>, <span class="php-num">1952</span>),
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;name&quot;</span>, <span class="php-quote">&quot;year&quot;</span>)
);
<span class="php-comment">//Next SQL sentence is sent to the database system</span>
INSERT INTO `robots` (`name`, `year`) VALUES (<span class="php-quote">&quot;boy&quot;</span>, <span class="php-num">1952</span>);</pre>
			</div>

			<div class="description detailed hidden">
				<p>Inserts data into a table using custom SQL syntax</p>

<pre><span class="php-comment">//Inserting a new robot</span>
<span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;insert(
    <span class="php-quote">&quot;robots&quot;</span>,
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;Boy&quot;</span>, <span class="php-num">1952</span>),
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;name&quot;</span>, <span class="php-quote">&quot;year&quot;</span>)
);
<span class="php-comment">//Next SQL sentence is sent to the database system</span>
INSERT INTO `robots` (`name`, `year`) VALUES (<span class="php-quote">&quot;boy&quot;</span>, <span class="php-num">1952</span>);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$table</var></dt>
						<dd></dd>
						<dt><var>$columnValues</var></dt>
						<dd></dd>
					</dl></div>


					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_insert">ManaPHP\DbInterface::insert()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="update" id="_update">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_update">#</a>
			<code><a href="source-class-ManaPHP.Db.html#359-420" title="Go to source code">update</a>( <span>string <var>$table</var></span>, <span>array <var>$columnValues</var></span>, <span>string|array <var>$conditions</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				<p>Updates data on a table using custom SQL syntax</p>

<pre><span class="php-comment">//Updating existing robot</span>
<span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;update(
    <span class="php-quote">&quot;robots&quot;</span>,
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;name&quot;</span>),
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;New Boy&quot;</span>),
    <span class="php-quote">&quot;id = 101&quot;</span>
);
<span class="php-comment">//Next SQL sentence is sent to the database system</span>
UPDATE `robots` SET `name` = <span class="php-quote">&quot;boy&quot;</span> WHERE id = <span class="php-num">101</span></pre>
			</div>

			<div class="description detailed hidden">
				<p>Updates data on a table using custom SQL syntax</p>

<pre><span class="php-comment">//Updating existing robot</span>
<span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;update(
    <span class="php-quote">&quot;robots&quot;</span>,
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;name&quot;</span>),
    <span class="php-keyword1">array</span>(<span class="php-quote">&quot;New Boy&quot;</span>),
    <span class="php-quote">&quot;id = 101&quot;</span>
);
<span class="php-comment">//Next SQL sentence is sent to the database system</span>
UPDATE `robots` SET `name` = <span class="php-quote">&quot;boy&quot;</span> WHERE id = <span class="php-num">101</span></pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$table</var></dt>
						<dd></dd>
						<dt><var>$columnValues</var></dt>
						<dd></dd>
						<dt><var>$conditions</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_update">ManaPHP\DbInterface::update()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="delete" id="_delete">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_delete">#</a>
			<code><a href="source-class-ManaPHP.Db.html#422-462" title="Go to source code">delete</a>( <span>string <var>$table</var></span>, <span>string|array <var>$conditions</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				<p>Deletes data from a table using custom SQL syntax</p>

<pre><span class="php-comment">//Deleting existing robot</span>
<span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;<span class="php-keyword2">delete</span>(
    <span class="php-quote">&quot;robots&quot;</span>,
    <span class="php-quote">&quot;id = 101&quot;</span>
);
<span class="php-comment">//Next SQL sentence is generated</span>
<span class="php-keyword2">DELETE</span> FROM `robots` WHERE `id` = <span class="php-num">101</span></pre>
			</div>

			<div class="description detailed hidden">
				<p>Deletes data from a table using custom SQL syntax</p>

<pre><span class="php-comment">//Deleting existing robot</span>
<span class="php-var">$success</span> = <span class="php-var">$connection</span>-&gt;<span class="php-keyword2">delete</span>(
    <span class="php-quote">&quot;robots&quot;</span>,
    <span class="php-quote">&quot;id = 101&quot;</span>
);
<span class="php-comment">//Next SQL sentence is generated</span>
<span class="php-keyword2">DELETE</span> FROM `robots` WHERE `id` = <span class="php-num">101</span></pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$table</var></dt>
						<dd></dd>
						<dt><var>$conditions</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_delete">ManaPHP\DbInterface::delete()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="limit" id="_limit">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_limit">#</a>
			<code><a href="source-class-ManaPHP.Db.html#464-479" title="Go to source code">limit</a>( <span>string <var>$sql</var></span>, <span>integer <var>$number</var></span>, <span>integer <var>$offset</var> = <span class="php-num">0</span></span> )</code>

			<div class="description short">
				<p>Appends a LIMIT clause to $sqlQuery argument</p>

<pre><span class="php-keyword1">echo</span> <span class="php-var">$connection</span>-&gt;limit(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>, <span class="php-num">5</span>);</pre>
			</div>

			<div class="description detailed hidden">
				<p>Appends a LIMIT clause to $sqlQuery argument</p>

<pre><span class="php-keyword1">echo</span> <span class="php-var">$connection</span>-&gt;limit(<span class="php-quote">&quot;SELECT * FROM robots&quot;</span>, <span class="php-num">5</span>);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd></dd>
						<dt><var>$number</var></dt>
						<dd></dd>
						<dt><var>$offset</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_limit">ManaPHP\DbInterface::limit()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getSQL" id="_getSQL">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSQL">#</a>
			<code><a href="source-class-ManaPHP.Db.html#481-489" title="Go to source code">getSQL</a>( )</code>

			<div class="description short">
				<p>Active SQL statement in the object</p>
			</div>

			<div class="description detailed hidden">
				<p>Active SQL statement in the object</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_getSQL">ManaPHP\DbInterface::getSQL()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="_parseBindValue" id="__parseBindValue">

			<td class="attributes"><code>
				 protected 
				integer|string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__parseBindValue">#</a>
			<code><a href="source-class-ManaPHP.Db.html#491-514" title="Go to source code">_parseBindValue</a>( <span>mixed <var>$value</var></span>, <span>integer <var>$preservedStrLength</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$value</var></dt>
						<dd></dd>
						<dt><var>$preservedStrLength</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer|string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getEmulatedSQL" id="_getEmulatedSQL">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getEmulatedSQL">#</a>
			<code><a href="source-class-ManaPHP.Db.html#516-541" title="Go to source code">getEmulatedSQL</a>( <span>integer <var>$preservedStrLength</var> = -<span class="php-num">1</span></span> )</code>

			<div class="description short">
				<p>Active SQL statement in the object with replace the bind with value</p>
			</div>

			<div class="description detailed hidden">
				<p>Active SQL statement in the object with replace the bind with value</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$preservedStrLength</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_getEmulatedSQL">ManaPHP\DbInterface::getEmulatedSQL()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getBind" id="_getBind">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getBind">#</a>
			<code><a href="source-class-ManaPHP.Db.html#543-551" title="Go to source code">getBind</a>( )</code>

			<div class="description short">
				<p>Active SQL statement in the object</p>
			</div>

			<div class="description detailed hidden">
				<p>Active SQL statement in the object</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_getBind">ManaPHP\DbInterface::getBind()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="begin" id="_begin">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_begin">#</a>
			<code><a href="source-class-ManaPHP.Db.html#553-570" title="Go to source code">begin</a>( )</code>

			<div class="description short">
				<p>Starts a transaction in the connection</p>
			</div>

			<div class="description detailed hidden">
				<p>Starts a transaction in the connection</p>




					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_begin">ManaPHP\DbInterface::begin()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="isUnderTransaction" id="_isUnderTransaction">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_isUnderTransaction">#</a>
			<code><a href="source-class-ManaPHP.Db.html#572-584" title="Go to source code">isUnderTransaction</a>( )</code>

			<div class="description short">
				<p>Checks whether the connection is under a transaction</p>

<pre><span class="php-var">$connection</span>-&gt;begin();
   <span class="php-keyword2">var_dump</span>(<span class="php-var">$connection</span>-&gt;isUnderTransaction()); <span class="php-comment">//true</span></pre>
			</div>

			<div class="description detailed hidden">
				<p>Checks whether the connection is under a transaction</p>

<pre><span class="php-var">$connection</span>-&gt;begin();
   <span class="php-keyword2">var_dump</span>(<span class="php-var">$connection</span>-&gt;isUnderTransaction()); <span class="php-comment">//true</span></pre>



					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_isUnderTransaction">ManaPHP\DbInterface::isUnderTransaction()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="rollback" id="_rollback">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_rollback">#</a>
			<code><a href="source-class-ManaPHP.Db.html#586-607" title="Go to source code">rollback</a>( )</code>

			<div class="description short">
				<p>Rollbacks the active transaction in the connection</p>
			</div>

			<div class="description detailed hidden">
				<p>Rollbacks the active transaction in the connection</p>




					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_rollback">ManaPHP\DbInterface::rollback()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="commit" id="_commit">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_commit">#</a>
			<code><a href="source-class-ManaPHP.Db.html#609-630" title="Go to source code">commit</a>( )</code>

			<div class="description short">
				<p>Commits the active transaction in the connection</p>
			</div>

			<div class="description detailed hidden">
				<p>Commits the active transaction in the connection</p>




					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Db.Exception.html">ManaPHP\Db\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_commit">ManaPHP\DbInterface::commit()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="lastInsertId" id="_lastInsertId">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_lastInsertId">#</a>
			<code><a href="source-class-ManaPHP.Db.html#632-640" title="Go to source code">lastInsertId</a>( )</code>

			<div class="description short">
				<p>Returns insert id for the auto_increment column inserted in the last SQL statement</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns insert id for the auto_increment column inserted in the last SQL statement</p>



					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.DbInterface.html#_lastInsertId">ManaPHP\DbInterface::lastInsertId()</a></code></div>
			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-ManaPHP.Component.html#methods">ManaPHP\Component</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.Component.html#___debugInfo">__debugInfo()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#___get">__get()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#___isset">__isset()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#___set">__set()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_attachEvent">attachEvent()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_dump">dump()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_fireEvent">fireEvent()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_getDependencyInjector">getDependencyInjector()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_setDependencyInjector">setDependencyInjector()</a></code>
			</p>
		</div>
		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-ManaPHP.DbInterface.html#methods">ManaPHP\DbInterface</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.DbInterface.html#_escapeIdentifier">escapeIdentifier()</a></code>, 
				<code><a href="class-ManaPHP.DbInterface.html#_getMetadata">getMetadata()</a></code>, 
				<code><a href="class-ManaPHP.DbInterface.html#_truncateTable">truncateTable()</a></code>
			</p>
		</div>










		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="_options" id="$_options">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#15-18" title="Go to source code"><var>$_options</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_options" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_type" id="$_type">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#20-25" title="Go to source code"><var>$_type</var></a>

				<div class="description short">
					<p>Type of database system driver is used for</p>
				</div>

				<div class="description detailed hidden">
					<p>Type of database system driver is used for</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_type" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_dsn" id="$_dsn">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#27-30" title="Go to source code"><var>$_dsn</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_dsn" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_username" id="$_username">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#32-35" title="Go to source code"><var>$_username</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_username" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_password" id="$_password">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#37-40" title="Go to source code"><var>$_password</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_password" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_sql" id="$_sql">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#42-47" title="Go to source code"><var>$_sql</var></a>

				<div class="description short">
					<p>Active SQL Statement</p>
				</div>

				<div class="description detailed hidden">
					<p>Active SQL Statement</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_sql" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_bind" id="$_bind">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#49-54" title="Go to source code"><var>$_bind</var></a>

				<div class="description short">
					<p>Active SQL bound parameter variables</p>
				</div>

				<div class="description detailed hidden">
					<p>Active SQL bound parameter variables</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_bind" class="anchor">#</a>
					<code>[]</code>
				</div>
			</td>
		</tr>
		<tr data-order="_transactionLevel" id="$_transactionLevel">
			<td class="attributes"><code>
				protected  
				integer
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#56-61" title="Go to source code"><var>$_transactionLevel</var></a>

				<div class="description short">
					<p>Current transaction level</p>
				</div>

				<div class="description detailed hidden">
					<p>Current transaction level</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_transactionLevel" class="anchor">#</a>
					<code><span class="php-num">0</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="_pdo" id="$_pdo">
			<td class="attributes"><code>
				protected  
				PDO
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#63-66" title="Go to source code"><var>$_pdo</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_pdo" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="_affectedRows" id="$_affectedRows">
			<td class="attributes"><code>
				protected  
				integer
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Db.html#68-73" title="Go to source code"><var>$_affectedRows</var></a>

				<div class="description short">
					<p>Last affected rows</p>
				</div>

				<div class="description detailed hidden">
					<p>Last affected rows</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_affectedRows" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-ManaPHP.Component.html#properties">ManaPHP\Component</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.Component.html#$_dependencyInjector"><var>$_dependencyInjector</var></a></code>
			</p>
		</div>



		<div class="panel panel-default">
            <div class="panel-heading"><h3>Magic properties inherited from <a href="class-ManaPHP.Component.html#properties">ManaPHP\Component</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.Component.html#m$alias"><var>$alias</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$configure"><var>$configure</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$eventsManager"><var>$eventsManager</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$filesystem"><var>$filesystem</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$logger"><var>$logger</var></a></code>
			</p>
		</div>


</div>
	</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
